home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / OCFSRC.PAK / BUILD.BAT < prev    next >
DOS Batch File  |  1997-05-06  |  2KB  |  62 lines

  1. :// -------------------------------------------------------------------------
  2. :// ObjectComponents
  3. :// Copyright (c) 1993, 1996 by Borland International, All Rights Reserved
  4. :// 
  5. :// $Revision:   2.28  $
  6. :// $Author:   BMYERS  $
  7. :// $Date:   05 Jul 1996 16:03:26  $
  8. :// 
  9. :// Simple batch file illustrating command line options to rebuild
  10. :// the OCF libraries
  11. :// 
  12. :// NOTE : The 'OCFOPTS' macro defined below can be used to set additional
  13. ://        options. For example, if you want to rebuild the libraries
  14. ://        with DIAGNOSTICS and DEBUG information enabled, you can 
  15. ://                set OCFOPTS=-DDIAGS -DDEBUG
  16. :// -------------------------------------------------------------------------
  17. @echo off
  18.  
  19. set OCFNAME=OCF
  20. set OCFVER=501
  21. set OCFOPTS=
  22.  
  23. :// -------------------------------------------------------------------------
  24. ://  16-bit versions of Library
  25. :// -------------------------------------------------------------------------
  26.   make WIN16=1 MODEL=l NAME=%OCFNAME% %OCFOPTS%
  27.   if errorlevel 1 goto Failure
  28.   del ..\lib\ocfwl.csm
  29.  
  30.   make WIN16=1 MODEL=l NAME=%OCFNAME% USERDLL=1 %OCFOPTS%
  31.   if errorlevel 1 goto Failure
  32.   del ..\lib\ocfwlu.csm
  33.  
  34.   make WIN16=1 DLL=1 NAME=%OCFNAME% %OCFOPTS%
  35.   if errorlevel 1 goto Failure
  36.   del ..\lib\ocfwi.csm
  37.  
  38.   make WIN16=1 DLL=1 NAME=%OCFNAME% USERDLL=1 %OCFOPTS%
  39.   if errorlevel 1 goto Failure
  40.   del ..\lib\ocfwiu.csm
  41.  
  42.  
  43. :// -------------------------------------------------------------------------
  44. ://  32-bit versions of Library
  45. :// -------------------------------------------------------------------------
  46.   make WIN32=1 MODEL=f NAME=%OCFNAME% %OCFOPTS%
  47.   if errorlevel 1 goto Failure
  48.   del ..\lib\ocfwf.csm
  49.  
  50.   make WIN32=1 DLL=1 NAME=%OCFNAME% %OCFOPTS%
  51.   if errorlevel 1 goto Failure
  52.   del ..\lib\ocfwfi.csm
  53.  
  54.   make WIN32=1 MODEL=f MT=1 NAME=%OCFNAME% %OCFOPTS%
  55.   if errorlevel 1 goto Failure
  56.   del ..\lib\ocfw*.csm
  57.  
  58.   make WIN32=1 DLL=1 MT=1 NAME=%OCFNAME% %OCFOPTS%
  59.   if errorlevel 1 goto Failure
  60.   del ..\lib\ocfw*.csm
  61.  
  62.